#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr[5] = { 0,1,2,3,4 };
	int i = 0;
	/*printf("please input five number:");
	for (i = 0; i < 5; i++)
	{
		scanf("%d", arr[i]);
	}*/
	int* p = arr;
	int sum = 0;
	for (i = 0; i < 5; i++)
	{
		sum += *(p + i);
	}
	
	printf("sum=%d\n", sum);
	
	return 0;
}